package com.dotc.kotlinmvvmdemo.NewFragment

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProvider

/**
 *
 */
class NewFragment : Fragment(){
  /*  private val viewModel: QunliaoFragmentViewModel by lazy {
        ViewModelProvider(this,
            ViewModelProvider.AndroidViewModelFactory(requireActivity().application)).get(QunliaoFragmentViewModel::class.java)
    }
    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        return DataBindingUtil.inflate<FragmentQunliaoBinding>(inflater,R.layout.fragment_qunliao,container,false).let {
            it.lifecycleOwner = this@QunliaoFragment
            it.viewmodel = viewModel
            it.root
        }
    }
*/
}